package org.example.wx.user.service;

import org.example.wx.user.entity.WxUser;

import java.util.Optional;

public interface WxUserService {
    WxUser registerIfAbsent(String openId, String nickName, String avatarUrl);
    Optional<WxUser> findByOpenId(String openId);
    WxUser registerUser(String username, String password, String nickname);
    Optional<WxUser> loginUser(String username, String password);
    Optional<WxUser> findById(Long id);
    WxUser updateProfile(Long userId, Object updateRequest);
}



